#ifndef __PLAYER_H__
#define __PLAYER_H__

#include <string>
#include "../Connector/Connector.h"
#include "../Settings/Settings.h"

class Player
{
private:
  Connector *connector_;

  //player's seat
  int seat_;
  //player's name
  std::string name_;


  Settings &settings_;

 // void openCardBySeat() const;
public:
  Player();
  Player(Connector &connector);

  int openCard() const;

  int getTotem() const;

  int connect(const std::string &name, const time_t &connectTime, int &error);

  void setName(const std::string &name);
  const std::string& getName() const;

  void setSeat(int seat);
  int getSeat() const;

  int setConnector(Connector &connector);
  Connector* getConnector() const;

  //int loadKeys(std::string fileName);

  int checkKey(char value, int place) const;
  bool checkKey(char value) const;
};
#endif
